//
//  SceneryCell.m
//  TravelDiary
//
//  Created by lanou3g on 15/11/13.
//  Copyright © 2015年 YDB MAC. All rights reserved.
//

#import "SceneryCell.h"
#import <UIImageView+WebCache.h>
@implementation SceneryCell


- (void)bindModel:(Scenery *)model{
    self.picImageView.layer.masksToBounds = YES;
    self.picImageView.layer.cornerRadius = 10;
   
    self.titleLabel.layer.borderWidth = 1;
    self.titleLabel.layer.borderColor = [UIColor grayColor].CGColor;
    
    
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.picUrl] placeholderImage:[UIImage imageNamed:@"packImageView"]];
    
    self.titleLabel.text = [NSString stringWithFormat:@"  %@",model.title];
    self.dataLabel.text = [NSString stringWithFormat:@"%@(发布)",model.date];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected s tate
}

@end
